package cn.edu.sdu.order.backend.controller;

import cn.edu.sdu.order.backend.dto.TestDTO;
import cn.edu.sdu.order.backend.annotation.NeedSwagger;
import cn.edu.sdu.order.backend.service.TestService;
import cn.edu.sdu.order.backend.vo.TestVO;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试接口
 *
 * @author 李洪文
 * @date 2020/8/25
 */
@Api(tags = "系统接口")
@RestController
@RequestMapping("v1/test")
@NeedSwagger
public class TestController {
    @Autowired
    private TestService testService;

    @GetMapping("hello")
    public TestVO hello(TestDTO testDTO) {
        return testService.hello(testDTO);
    }
}
